<div class="exposition-view">
    <div class="exposition-image">
        {assign var="expositionImage" value=UploadImageFacade::resolveImagePath($model->image_id, "135x135")}
        <img src="{$expositionImage}" />
    </div>
    <div class="exposition-info">
        <h2><a href="/contest/participants/{$model->id}">{$model->name}</a></h2>        
        <div class="exposition-dates">
            <p>c <b>{$model->from_date|date_format:"%e.%m.%Y"}</b></p>
            <p>по <b>{$model->to_date|date_format:"%e.%m.%Y"}</b></p>
        </div>        
        <a style="padding-bottom: 15px;" href="/contest/participants/{$model->id}">Посмотреть фотографии</a>
        <div class="exposition-descr">
            <p>{$model->description}</p>
        </div>
        {if !Yii::app()->user->isGuest}
        <div class="exposition-actions">
            {array assign="htmlOptions" class="popup-button"}
            {chtmlLink text="<span>Добавить фото</span>" url="/contest/addphoto/{$model->id}" htmlOptions=$htmlOptions}
        </div>
        {/if}
    </div>
    <div style="clear: both;"></div>
</div>